package com.sakiko.audiobook.validation;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;
 
import java.lang.annotation.*;
 
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.PARAMETER, ElementType.FIELD, ElementType.METHOD })
@Constraint(validatedBy = NotEmptyPaidValidator.class)
public @interface NotEmptyPaid {
 
    String message() default "不能为空";
 
    Class<?>[] groups() default {};
 
    Class<? extends Payload>[] payload() default {};
}